﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using CommunityToolkit.Mvvm.Input;
using CommunityToolkit.Mvvm.Messaging;
using FanaticRock.Events;

namespace FanaticRock.GlobalCommands
{
    public static partial class TrayIconCommands
    {
        public static ICommand OpenMainWindowCommand { get; private set; } = new RelayCommand(OpenMainWindow);
        public static void OpenMainWindow()
        {
            var appMessageEventArgs = new AppMessageEventArgs(AppMessageEventArgs.WindowEnum.MainWindow);
            WeakReferenceMessenger.Default.Send(appMessageEventArgs);


        }


    }
}
